mudbox::uInt8Channel Class Reference

#include <image.h>

List of all members.


Detailed Description

The data type for a 8 bit image channel.

0-255 maps to 0.0 to 1.0 in floating point or 0-65535 in 16 bit fixed point.


Public Member Functions

  uInt8Channel (const float32Channel &d)
  uInt8Channel (const float16Channel &d)
  uInt8Channel (const uInt16Channel &d)
  uInt8Channel (const uInt8Channel &d)
  uInt8Channel (uInt8 d)
  uInt8Channel ()
uInt8Channel operator= (const float32Channel &d)
uInt8Channel operator= (const float16Channel &d)
uInt8Channel operator= (const uInt16Channel &d)
uInt8Channel operator= (const uInt8Channel &d)
uInt8Channel operator= (uInt8 d)
  operator float () const
  operator half_ () const
  operator uInt16 () const
  operator uInt8 () const

Constructor & Destructor Documentation

mudbox::uInt8Channel::uInt8Channel const float32Channel d  )  [inline]
 
00301 { m_data = uInt8(d); }
mudbox::uInt8Channel::uInt8Channel const float16Channel d  )  [inline]
 
00302 { m_data = uInt8(d); }
mudbox::uInt8Channel::uInt8Channel const uInt16Channel d  )  [inline]
 
00303 { m_data = uInt8(d); }
mudbox::uInt8Channel::uInt8Channel const uInt8Channel d  )  [inline]
 
00108 { m_data = uInt8(d); }
mudbox::uInt8Channel::uInt8Channel uInt8  d  )  [inline]
 
00110 { m_data = (d); }
mudbox::uInt8Channel::uInt8Channel  )  [inline]
 
00111 {}

Member Function Documentation

uInt8Channel & mudbox::uInt8Channel::operator= const float32Channel d  )  [inline]
 
00307 {
00308     m_data = uInt8(d);
00309     return *this;
00310 }
uInt8Channel & mudbox::uInt8Channel::operator= const float16Channel d  )  [inline]
 
00314 {
00315     m_data = uInt8(d);
00316     return *this;
00317 }
uInt8Channel & mudbox::uInt8Channel::operator= const uInt16Channel d  )  [inline]
 
00321 {
00322     m_data = uInt8(d);
00323     return *this;
00324 }
uInt8Channel& mudbox::uInt8Channel::operator= const uInt8Channel d  )  [inline]
 
00117     {
00118         m_data = uInt8(d);
00119         return *this;
00120     }
uInt8Channel& mudbox::uInt8Channel::operator= uInt8  d  )  [inline]
 
00123     {
00124         m_data = uInt8(d);
00125         return *this;
00126     }
mudbox::uInt8Channel::operator float  )  const [inline]
 
00128 { return m_data * (1.0f/255.0f); }
mudbox::uInt8Channel::operator half_  )  const [inline]
 
00129 { return half_(m_data * (1.0f/255.0f)); }
mudbox::uInt8Channel::operator uInt16  )  const [inline]
 
00130 { return (m_data << 8) + m_data; }
mudbox::uInt8Channel::operator uInt8  )  const [inline]
 
00131 { return m_data; }

mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel
mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel mudbox::uInt8Channel